package cn.stylefeng.guns.modular.hx.basic.service;

import cn.stylefeng.guns.base.pojo.node.ZTreeNode;
import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.hx.basic.entity.HxBasicUnitCode;
import cn.stylefeng.guns.modular.hx.basic.model.params.HxBasicUnitCodeParam;
import cn.stylefeng.guns.modular.hx.basic.model.result.HxBasicUnitCodeResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 单位分组 服务类
 * </p>
 *
 * @author zhucx
 * @since 2024-01-10
 */
public interface HxBasicUnitCodeService extends IService<HxBasicUnitCode> {

    /**
     * 新增
     *
     * @author zhucx
     * @Date 2024-01-10
     */
    void add(HxBasicUnitCodeParam param);

    /**
     * 删除
     *
     * @author zhucx
     * @Date 2024-01-10
     */
    void delete(HxBasicUnitCodeParam param);

    /**
     * 更新
     *
     * @author zhucx
     * @Date 2024-01-10
     */
    void update(HxBasicUnitCodeParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhucx
     * @Date 2024-01-10
     */
    HxBasicUnitCodeResult findBySpec(HxBasicUnitCodeParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zhucx
     * @Date 2024-01-10
     */
    List<HxBasicUnitCodeResult> findListBySpec(HxBasicUnitCodeParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhucx
     * @Date 2024-01-10
     */
     LayuiPageInfo findPageBySpec(HxBasicUnitCodeParam param,String condition);

	List<HxBasicUnitCodeResult> likePids(Integer id);

	List<ZTreeNode> tree(HxBasicUnitCodeParam hxBasicUnitCodeParam);

}
